package com.bdqn.demo01.factory;

import com.bdqn.demo01.dao.NewsDao;
import com.bdqn.demo01.dao.NewsDaoMySQLImpl;

/**
 * MySQLDaoFactory
 *
 * @author LILIBO
 * @since 2022-09-24
 */
public class MySQLDaoFactory implements AbstractFactory {

    /**
     * 能生产NewsDao的实例对象（专门生产MySQL版本的实例对象）
     *
     * @return
     */
    @Override
    public NewsDao getInstance() {
        return new NewsDaoMySQLImpl();
    }

}
